# Makefile 
main:main.o CGame.o CBoard.o CPlayer.o CJudge.o AI.o Piece.o
	g++ -g -o main main.o CGame.o CBoard.o CPlayer.o CJudge.o AI.o Piece.o
main.o:main.cpp CGame.h
	g++ -g -c main.cpp
CGame.o:CGame.cpp CPlayer.h CBoard.h CJudge.h AI.h Piece.h
	g++ -g -c CGame.cpp
CPlayer.o:CPlayer.cpp CBoard.h Piece.h
	g++ -g -c CPlayer.cpp
CJudge.o:CJudge.cpp CBoard.h 
	g++ -g -c CJudge.cpp
AI.o:AI.cpp CBoard.h Piece.h
	g++ -g -c AI.cpp
Piece.o:Piece.cpp
	g++ -g -c Piece.cpp
CBoard.o:CBoard.cpp
	g++ -g -c CBoard.cpp
clean:
	-rm -rf *.o main
